package cn.stylefeng.guns.modular.stock.model.params;

import lombok.Data;
import cn.stylefeng.roses.kernel.model.validator.BaseValidatingParam;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author xzan
 * @since 2020-03-15
 */
@Data
public class StockStrategyParam implements Serializable, BaseValidatingParam {

    private static final long serialVersionUID = 1L;


    private String id;
    private String remark;
    private String stockPosition;

    private String code;

    private String name;

    private Float buyPrice;

    private Float stopLossPrice;

    private Float takeProfitPrice;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date buyDate;

    private Float profitRate;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sellDate;

    private Integer buyAmount;

    private Integer sellAmount;

    private Integer status;

    private Integer eventType;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtCreate;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtModified;

    @Override
    public String checkParam() {
        return null;
    }

}
